//全局组件插件
import { componentsPlugin } from '@/components/index.ts';
// 懒加载指令全局指令注册
import { lazyPlugin } from '@/directives';
import router from '@/router';
//引入默认样式
import '@/styles/common.scss';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);
//注册持久化
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(router);
app.use(pinia);
//懒加载指令注册
app.use(lazyPlugin);
//全局组件注册
app.use(componentsPlugin);
app.mount('#app');
